var islogin ={};
islogin.checkAfterAjax = function () {
	//判断cookie中有没有存用户
	var username = gb.getCookie("username");
	//没存就去登陆,登陆成功再存cookie
	if(username == "" || username ==null){
		islogin.alertLogin();
	}else{
		
	}
};
islogin.alertLogin = function () {
	layer.open({
		  type: 2,
		  title: '系统检测到您还没有登陆...',
		  closeBtn: 0,
		  shadeClose: false,
		  shade: 0.9,
		  area:  ['500px', '230px'],
		  offset: '150px',
		  content: 'login_s' 
		}); 
}
islogin.checkAfterAjax();
$("#login_out").click(function (){
	gb.delCookie("username");
	location.reload();
});